/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.yonsei.iwb.ts.index;

import com.hp.hpl.jena.rdf.model.Property;
import com.hp.hpl.jena.rdf.model.Resource;
import com.hp.hpl.jena.rdf.model.ResourceFactory;
import com.hp.hpl.jena.vocabulary.OWL;
import com.hp.hpl.jena.vocabulary.RDF;
import com.hp.hpl.jena.vocabulary.RDFS;
import com.hp.hpl.jena.vocabulary.XSD;
import java.util.ArrayList;

/**
 *
 * @author dk
 */
public class UnIndexedResourceList {
    
    private static ArrayList<Resource> RSET;
    
    public UnIndexedResourceList(){
        RSET = new ArrayList();
        
        RSET.add(RDFS.domain);
        RSET.add(RDFS.range);
        RSET.add(RDFS.subPropertyOf);
        RSET.add(RDFS.ContainerMembershipProperty);        
        RSET.add(RDFS.isDefinedBy);        
        RSET.add(RDFS.Container);        
        RSET.add(RDFS.label);           
        RSET.add(RDFS.subClassOf);      
        RSET.add(RDFS.Resource);  
        RSET.add(RDFS.Class);
        RSET.add(RDFS.Datatype);
        RSET.add(RDFS.seeAlso);
        RSET.add(RDFS.Literal);
        RSET.add(RDFS.comment);
        RSET.add(OWL.DatatypeProperty);
        RSET.add(OWL.ObjectProperty);
        RSET.add(OWL.Ontology);
        RSET.add(OWL.Class);
        RSET.add(RDF.first);
        RSET.add(RDF.object);
        RSET.add(RDF.Alt);
        RSET.add(RDF.List);
        RSET.add(RDF.Statement);
        RSET.add(RDF.Seq);
        RSET.add(RDF.Property);
        RSET.add(ResourceFactory.createResource("http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral"));
        RSET.add(RDF.nil);
        RSET.add(RDF.Bag);
        RSET.add(RDF.predicate);
        RSET.add(RDF.rest);
        RSET.add(RDF.type);
        RSET.add(RDF.subject);
        RSET.add(XSD.xint);
        RSET.add(XSD.xfloat);
        RSET.add(XSD.xdouble);
        RSET.add(XSD.xstring);
        
        
    }    
    
    public static boolean contain(Resource r){
        if(RSET.contains(r)){
            return true;
        }else{
            return false;
        }
    }
    
    public static boolean contain(Property r){
        if(RSET.contains(r.asResource())){
            return true;
        }else{
            return false;
        }
    }    
    
}


